package com.spring.schedule_system.dao;

        import com.baomidou.mybatisplus.core.mapper.BaseMapper;
        import com.spring.schedule_system.entity.Teacher;
        import org.apache.ibatis.annotations.Insert;
        import org.apache.ibatis.annotations.Mapper;
        import org.springframework.stereotype.Repository;

@Mapper
@Repository

public interface TeacherDao extends BaseMapper<Teacher> {
    @Insert("insert into tb_teacher(teacher_name) select teacher_name from common_user;")
    int insertTeacher();
}
